//
//  NSString+Extension.m
//  meapp
//
//  Created by linjie on 16/2/18.
//  Copyright © 2016年 nd. All rights reserved.
//

#import "NSString+Extension.h"

@implementation NSString (Extension)

-(bool) isEmptyString {
    if (self == nil || self == NULL) {
        return YES;
    }
    if ([self isKindOfClass:[NSNull class]]) {
        return YES;
    }
    if ([[self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0) {
        return YES;
    }
    return NO;
}
@end
